<h1>Site Settings</h1>

<?php 
foreach ($this->modules as $module => $config) {
    $fileContents = file_get_contents($config['path'] . '/' . DIGITALUS_MODULE_CONFIG_FILE);
    $this->tabPane('site_settings',
        $this->partial('editor/_file-editor.phtml', array(
            'action'		=> '/dig/settings/save',
            'id'	        => $module,
            'file_contents'	=> $fileContents
        )),
        array('title' => $config['title']));
}
        
echo $this->tabContainer('site_settings', array('id' => 'settings_inteface'));

$this->jQuery()->onLoadCaptureStart(); ?>
var jsonFormOptions = {
        dataType: 'json',
        beforeSubmit: function()
        {
            $.dig.ui.disable();
        },
        success: function(data)
        {
            $.dig.ui.enable();
        }
}

$('.jsonForm').ajaxForm(jsonFormOptions); 
<?php $this->jQuery()->onLoadCaptureEnd(); ?>




